﻿@model LunchCommand.Models.User

@{
    ViewBag.Title = "Welcome!";
    ViewBag.DisplayNavbar = false;
}

<h2>Welcome to the Lunch Command</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        
        <br/>

        <h4>Hi there! <br/><br/> "@Model.Name" isn't very easy on the eyes.
            <br />
        <br/>
        <p>How about we use your actual name?</p></h4>       
        <br/>
        <h5>This is the last time you'll see this message.  Make sure you don't have any typos!</h5>
        <br/>
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        <div class="form-group">
            @Html.LabelFor(model => model.Name, "Real Name", htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
            </div>
        </div>

        @Html.HiddenFor(u => u.WindowsUsername)

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Continue To Application" class="btn btn-default" />
            </div>
        </div>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
